<?php

/**
 * Facade_UserAccess
 * Fachada de los accesos de los usuarios
 * @copyright 2011
 * @version $Id$
 * @access public
 */
class Default_Model_Facade_Userinfo{



	public function getPersonalInfo($to)
	{
		$TBD_UserAccess = new Default_Model_Userinfo();

		try{
			$data =  $TBD_UserAccess->getPersonalInfo($to);
			return $data;
		}
		catch(Exception $e)
		{
			$error=array($e->getFile(), 'Exception: '.$e->getMessage());
			$ExceptionHandler= new Default_Model_ExceptionHandler();
			$ExceptionHandler->saveErrors($error);
		}
	}
	
	
	
	public function isAllow($userAccess)
	{
		$TBD_UserAccess = new Default_Model_Userinfo();

		try{
			$data =  $TBD_UserAccess->isAllow($userAccess);
			return $data;
		}
		catch(Exception $e)
		{
			$error=array($e->getFile(), 'Exception: '.$e->getMessage());
			$ExceptionHandler= new Default_Model_ExceptionHandler();
			$ExceptionHandler->saveErrors($error);
		}
	}
		
}
